Teacher Version

Hero Image
Hero Image

Turn If Blocked

Topics Covered

  • If/Else Block
  • Thinking About "Cases"

Virtual Robot: MoveIfClearVR.rbg

Physical Robot: MoveIfClear.rbg

Check Your Understanding

  1. The robot will move forward...
    1. If there is no object in front of the Distance Sensor when the program starts
    2. If there is an object in front of the Distance Sensor when the program starts
    3. If an object passes in front of the Distance Sensor at any time
    4. Until an object passes in front of the Distance Sensor
  2. The robot makes its decision about whether to move forward or turn right...
    1. Once, when the If/Else Statement Block is reached in the program
    2. Once, when the If/Else Statement Block sees an object
    3. Continually while the program is running
    4. The robot never moves, no matter what

ClosedClick here for the Answers

A. If there is no object in front of the Distance Sensor when the program starts

A. Once, when the If/Else Statement Block is reached in the program

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.